package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Gift;
import cn.wolfcode.crm.qo.EmployeeQueryObject;
import cn.wolfcode.crm.qo.GiftQueryObject;
import cn.wolfcode.crm.qo.PageResult;

import java.util.List;

public interface IGiftService {
    void saveOrUpdate(Gift entity);
    void delete(Long id);
    Gift get(Long id);
    List<Gift> list();

    PageResult query(GiftQueryObject qo);

    /**
     * 兑换礼品
     * @param gift 礼品
     * @param cardNumber 会员卡号
     */
    void exchangeGift(Gift gift, String cardNumber);


}
